home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 72 65 | 64 2e 77 65 65 67 2e 75 |Path: re|d.weeg.u|
|00000010| 69 6f 77 61 2e 65 64 75 | 21 72 6f 62 69 6e 73 6f |iowa.edu|!robinso|
|00000020| 6e 0a 46 72 6f 6d 3a 20 | 4a 61 6d 65 73 20 52 6f |n.From: |James Ro|
|00000030| 62 69 6e 73 6f 6e 20 3c | 72 6f 62 69 6e 73 6f 6e |binson <|robinson|
|00000040| 40 62 6c 75 65 2e 77 65 | 65 67 2e 75 69 6f 77 61 |@blue.we|eg.uiowa|
|00000050| 2e 65 64 75 3e 0a 4e 65 | 77 73 67 72 6f 75 70 73 |.edu>.Ne|wsgroups|
|00000060| 3a 20 63 6f 6d 70 2e 6c | 61 6e 67 2e 63 0a 53 75 |: comp.l|ang.c.Su|
|00000070| 62 6a 65 63 74 3a 20 52 | 65 3a 20 73 69 6d 70 6c |bject: R|e: simpl|
|00000080| 65 20 63 6f 64 65 2c 20 | 61 72 67 63 2c 20 61 72 |e code, |argc, ar|
|00000090| 67 76 2c 20 73 74 72 63 | 6d 70 28 29 0a 44 61 74 |gv, strc|mp().Dat|
|000000a0| 65 3a 20 46 72 69 2c 20 | 39 20 46 65 62 20 31 39 |e: Fri, |9 Feb 19|
|000000b0| 39 36 20 30 32 3a 35 34 | 3a 32 36 20 2d 30 36 30 |96 02:54|:26 -060|
|000000c0| 30 0a 4f 72 67 61 6e 69 | 7a 61 74 69 6f 6e 3a 20 |0.Organi|zation: |
|000000d0| 55 6e 69 76 65 72 73 69 | 74 79 20 6f 66 20 49 6f |Universi|ty of Io|
|000000e0| 77 61 2c 20 49 6f 77 61 | 20 43 69 74 79 2c 20 49 |wa, Iowa| City, I|
|000000f0| 41 2c 20 55 53 41 0a 44 | 69 73 74 72 69 62 75 74 |A, USA.D|istribut|
|00000100| 69 6f 6e 3a 20 77 6f 72 | 6c 64 0a 4d 65 73 73 61 |ion: wor|ld.Messa|
|00000110| 67 65 2d 49 44 3a 20 3c | 50 69 6e 65 2e 41 33 32 |ge-ID: <|Pine.A32|
|00000120| 2e 33 2e 39 31 2e 39 36 | 30 32 30 39 30 32 34 38 |.3.91.96|02090248|
|00000130| 31 31 2e 32 34 34 33 34 | 4c 2d 31 30 30 30 30 30 |11.24434|L-100000|
|00000140| 40 72 65 64 2e 77 65 65 | 67 2e 75 69 6f 77 61 2e |@red.wee|g.uiowa.|
|00000150| 65 64 75 3e 0a 52 65 66 | 65 72 65 6e 63 65 73 3a |edu>.Ref|erences:|
|00000160| 20 3c 31 31 66 37 63 63 | 24 31 37 32 36 31 61 2e | <11f7cc|$17261a.|
|00000170| 33 62 33 40 64 61 70 72 | 65 7a 3e 20 3c 34 65 74 |3b3@dapr|ez> <4et|
|00000180| 6a 37 63 24 62 6d 61 40 | 6e 65 77 73 2e 69 61 67 |j7c$bma@|news.iag|
|00000190| 2e 6e 65 74 3e 20 3c 66 | 63 75 73 61 63 6b 2d 30 |.net> <f|cusack-0|
|000001a0| 32 30 32 39 36 31 36 32 | 31 34 37 30 30 30 31 40 |20296162|1470001@|
|000001b0| 6d 75 64 73 6b 69 70 70 | 65 72 2e 63 61 63 2e 70 |mudskipp|er.cac.p|
|000001c0| 73 75 2e 65 64 75 3e 20 | 3c 34 66 30 72 6a 6e 24 |su.edu> |<4f0rjn$|
|000001d0| 73 66 68 40 6e 65 77 73 | 2e 69 61 67 2e 6e 65 74 |sfh@news|.iag.net|
|000001e0| 3e 20 3c 38 32 33 36 31 | 35 34 36 35 73 6e 7a 40 |> <82361|5465snz@|
|000001f0| 67 65 6e 65 73 69 73 2e | 64 65 6d 6f 6e 2e 63 6f |genesis.|demon.co|
|00000200| 2e 75 6b 3e 20 3c 34 66 | 65 6e 39 73 24 6a 6a 67 |.uk> <4f|en9s$jjg|
|00000210| 40 6e 65 77 73 2e 69 61 | 67 2e 6e 65 74 3e 0a 4e |@news.ia|g.net>.N|
|00000220| 4e 54 50 2d 50 6f 73 74 | 69 6e 67 2d 48 6f 73 74 |NTP-Post|ing-Host|
|00000230| 3a 20 72 65 64 2e 77 65 | 65 67 2e 75 69 6f 77 61 |: red.we|eg.uiowa|
|00000240| 2e 65 64 75 0a 4d 69 6d | 65 2d 56 65 72 73 69 6f |.edu.Mim|e-Versio|
|00000250| 6e 3a 20 31 2e 30 0a 43 | 6f 6e 74 65 6e 74 2d 54 |n: 1.0.C|ontent-T|
|00000260| 79 70 65 3a 20 54 45 58 | 54 2f 50 4c 41 49 4e 3b |ype: TEX|T/PLAIN;|
|00000270| 20 63 68 61 72 73 65 74 | 3d 55 53 2d 41 53 43 49 | charset|=US-ASCI|
|00000280| 49 0a 58 2d 53 65 6e 64 | 65 72 3a 20 72 6f 62 69 |I.X-Send|er: robi|
|00000290| 6e 73 6f 6e 40 72 65 64 | 2e 77 65 65 67 2e 75 69 |nson@red|.weeg.ui|
|000002a0| 6f 77 61 2e 65 64 75 0a | 49 6e 2d 52 65 70 6c 79 |owa.edu.|In-Reply|
|000002b0| 2d 54 6f 3a 20 3c 34 66 | 65 6e 39 73 24 6a 6a 67 |-To: <4f|en9s$jjg|
|000002c0| 40 6e 65 77 73 2e 69 61 | 67 2e 6e 65 74 3e 20 0a |@news.ia|g.net> .|
|000002d0| 0a 4f 6e 20 39 20 46 65 | 62 20 31 39 39 36 2c 20 |.On 9 Fe|b 1996, |
|000002e0| 4a 6f 68 6e 20 52 20 42 | 75 63 68 61 6e 20 77 72 |John R B|uchan wr|
|000002f0| 6f 74 65 3a 0a 0a 3e 20 | 3c 73 69 67 68 3e 20 59 |ote:..> |<sigh> Y|
|00000300| 65 73 2c 20 49 20 61 6d | 20 77 65 6c 6c 20 61 77 |es, I am| well aw|
|00000310| 61 72 65 20 74 68 61 74 | 20 73 74 72 63 6d 70 20 |are that| strcmp |
|00000320| 64 6f 65 73 6e 27 74 20 | 72 65 74 75 72 6e 20 61 |doesn't |return a|
|00000330| 20 62 6f 6f 6c 65 61 6e | 20 76 61 6c 75 65 2e 20 | boolean| value. |
|00000340| 57 68 65 6e 0a 3e 20 69 | 74 20 69 73 20 61 63 74 |When.> i|t is act|
|00000350| 75 61 6c 6c 79 20 75 73 | 65 64 20 74 6f 20 64 65 |ually us|ed to de|
|00000360| 74 65 72 6d 69 6e 65 20 | 74 68 65 20 72 65 6c 61 |termine |the rela|
|00000370| 74 69 76 65 20 76 61 6c | 75 65 20 6f 66 20 73 74 |tive val|ue of st|
|00000380| 72 69 6e 67 73 20 28 69 | 65 20 69 6e 20 61 20 73 |rings (i|e in a s|
|00000390| 6f 72 74 0a 3e 20 66 75 | 6e 63 74 69 6f 6e 29 2c |ort.> fu|nction),|
|000003a0| 20 69 74 20 6d 61 6b 65 | 73 20 70 65 72 66 65 63 | it make|s perfec|
|000003b0| 74 20 73 65 6e 73 65 20 | 61 6e 64 20 69 74 73 20 |t sense |and its |
|000003c0| 75 73 65 20 69 73 20 71 | 75 69 74 65 20 73 74 72 |use is q|uite str|
|000003d0| 61 69 67 68 74 66 6f 72 | 77 61 72 64 2e 0a 3e 20 |aightfor|ward..> |
|000003e0| 0a 3e 20 48 6f 77 65 76 | 65 72 2c 20 77 68 65 6e |.> Howev|er, when|
|000003f0| 20 79 6f 75 20 75 73 65 | 20 69 74 20 61 73 20 74 | you use| it as t|
|00000400| 68 65 20 63 6f 6e 64 69 | 74 69 6f 6e 20 6f 66 20 |he condi|tion of |
|00000410| 61 6e 20 69 66 20 28 6f | 72 20 61 6e 79 20 73 69 |an if (o|r any si|
|00000420| 6d 69 6c 61 72 20 0a 3e | 20 63 6f 6e 64 69 74 69 |milar .>| conditi|
|00000430| 6f 6e 61 6c 29 20 74 68 | 65 20 6f 6e 6c 79 20 74 |onal) th|e only t|
|00000440| 68 69 6e 67 20 74 68 61 | 74 20 6d 61 74 74 65 72 |hing tha|t matter|
|00000450| 73 20 69 73 20 77 68 65 | 74 68 65 72 20 74 68 65 |s is whe|ther the|
|00000460| 20 72 65 74 75 72 6e 20 | 69 73 20 7a 65 72 6f 20 | return |is zero |
|00000470| 6f 72 20 0a 3e 20 6e 6f | 6e 2d 7a 65 72 6f 20 28 |or .> no|n-zero (|
|00000480| 46 61 6c 73 65 20 6f 72 | 20 54 72 75 65 29 2e 20 |False or| True). |
|00000490| 20 49 20 67 75 65 73 73 | 20 69 74 27 73 20 61 20 | I guess| it's a |
|000004a0| 77 65 61 6b 6e 65 73 73 | 20 6f 66 20 6d 69 6e 65 |weakness| of mine|
|000004b0| 2c 20 62 75 74 20 49 20 | 74 65 6e 64 20 74 6f 20 |, but I |tend to |
|000004c0| 0a 3e 20 72 65 61 64 20 | 63 6f 6e 64 69 74 69 6f |.> read |conditio|
|000004d0| 6e 73 20 28 6f 72 20 61 | 6e 79 20 65 73 73 65 6e |ns (or a|ny essen|
|000004e0| 74 69 61 6c 6c 79 20 62 | 6f 6f 6c 65 61 6e 20 65 |tially b|oolean e|
|000004f0| 78 70 72 65 73 73 69 6f | 6e 73 29 20 69 6e 20 74 |xpressio|ns) in t|
|00000500| 65 72 6d 73 20 6f 66 20 | 54 72 75 65 20 61 6e 64 |erms of |True and|
|00000510| 0a 3e 20 46 61 6c 73 65 | 20 28 61 6e 20 75 6e 66 |.> False| (an unf|
|00000520| 6f 72 74 75 6e 61 74 65 | 20 73 69 64 65 20 65 66 |ortunate| side ef|
|00000530| 66 65 63 74 20 6f 66 20 | 74 68 69 73 20 69 73 20 |fect of |this is |
|00000540| 74 68 61 74 20 49 20 63 | 61 6e 20 6d 61 6b 65 20 |that I c|an make |
|00000550| 74 68 65 20 6d 69 73 74 | 61 6b 65 20 0a 3e 20 6d |the mist|ake .> m|
|00000560| 65 6e 74 69 6f 6e 65 64 | 20 61 62 6f 76 65 29 2e |entioned| above).|
|00000570| 20 20 57 68 65 6e 20 74 | 68 65 20 66 75 6e 63 74 | When t|he funct|
|00000580| 69 6f 6e 27 73 20 6e 61 | 6d 65 20 64 6f 65 73 6e |ion's na|me doesn|
|00000590| 27 74 20 6d 61 6b 65 20 | 69 74 73 20 27 62 6f 6f |'t make |its 'boo|
|000005a0| 6c 65 61 6e 27 20 76 61 | 6c 75 65 20 0a 3e 20 6f |lean' va|lue .> o|
|000005b0| 62 76 69 6f 75 73 2c 20 | 49 20 66 69 6e 64 20 74 |bvious, |I find t|
|000005c0| 68 65 20 63 6f 64 65 20 | 6d 75 63 68 20 65 61 73 |he code |much eas|
|000005d0| 69 65 72 20 74 6f 20 72 | 65 61 64 2c 20 69 66 20 |ier to r|ead, if |
|000005e0| 49 20 63 6f 6d 70 61 72 | 65 20 74 68 65 20 72 65 |I compar|e the re|
|000005f0| 74 75 72 6e 20 74 6f 20 | 0a 3e 20 73 6f 6d 65 20 |turn to |.> some |
|00000600| 27 6f 62 76 69 6f 75 73 | 27 20 76 61 6c 75 65 20 |'obvious|' value |
|00000610| 28 65 67 2c 20 30 2c 20 | 4e 55 4c 4c 2c 20 65 74 |(eg, 0, |NULL, et|
|00000620| 63 29 2e 0a 3e 20 0a 3e | 20 41 73 20 79 6f 75 20 |c)..> .>| As you |
|00000630| 69 6e 64 69 63 61 74 65 | 64 20 74 68 65 20 6e 61 |indicate|d the na|
|00000640| 6d 65 20 27 73 74 72 63 | 6d 70 27 20 64 6f 65 73 |me 'strc|mp' does|
|00000650| 6e 27 74 20 72 65 61 6c | 6c 79 20 72 65 61 64 20 |n't real|ly read |
|00000660| 77 65 6c 6c 20 69 6e 20 | 61 20 62 6f 6f 6c 65 61 |well in |a boolea|
|00000670| 6e 2e 20 0a 3e 20 4d 61 | 79 62 65 20 69 74 20 73 |n. .> Ma|ybe it s|
|00000680| 68 6f 75 6c 64 20 63 68 | 61 6e 67 65 64 20 74 6f |hould ch|anged to|
|00000690| 20 73 6f 6d 65 74 68 69 | 6e 67 20 6c 69 6b 65 3a | somethi|ng like:|
|000006a0| 0a 3e 20 0a 3e 20 20 69 | 66 28 20 74 68 65 73 65 |.> .> i|f( these|
|000006b0| 53 74 72 69 6e 67 73 41 | 72 65 44 69 66 66 65 72 |StringsA|reDiffer|
|000006c0| 65 6e 74 28 73 74 72 31 | 2c 20 73 74 72 32 29 20 |ent(str1|, str2) |
|000006d0| 29 20 2f 2a 20 49 73 20 | 74 68 69 73 20 61 20 62 |) /* Is |this a b|
|000006e0| 69 74 20 77 6f 72 64 79 | 3f 20 3a 2d 7d 20 2a 2f |it wordy|? :-} */|
|000006f0| 0a 3e 20 0a 3e 20 2e 2e | 2e 2e 62 75 74 20 74 68 |.> .> ..|..but th|
|00000700| 61 74 20 6e 61 6d 65 20 | 64 6f 65 73 6e 27 74 20 |at name |doesn't |
|00000710| 6d 61 6b 65 20 73 65 6e | 73 65 20 69 6e 20 61 20 |make sen|se in a |
|00000720| 72 65 6c 61 74 69 76 65 | 20 76 61 6c 75 65 20 73 |relative| value s|
|00000730| 74 61 74 65 6d 65 6e 74 | 2e 20 48 6d 6d 2e 2e 3a |tatement|. Hmm..:|
|00000740| 29 0a 0a 20 20 49 27 76 | 65 20 70 65 72 73 6f 6e |).. I'v|e person|
|00000750| 61 6c 6c 79 20 75 73 65 | 64 20 62 6f 74 68 0a 0a |ally use|d both..|
|00000760| 23 64 65 66 69 6e 65 20 | 45 51 55 41 4c 20 30 0a |#define |EQUAL 0.|
|00000770| 0a 69 66 20 28 73 74 72 | 63 6d 70 28 73 31 2c 20 |.if (str|cmp(s1, |
|00000780| 73 32 29 20 3d 3d 20 45 | 51 55 41 4c 29 20 2f 2a |s2) == E|QUAL) /*|
|00000790| 20 2e 2e 2e 20 2a 2f 0a | 0a 20 20 61 6e 64 0a 0a | ... */.|. and..|
|000007a0| 69 6e 74 20 53 74 72 45 | 71 75 28 63 6f 6e 73 74 |int StrE|qu(const|
|000007b0| 20 63 68 61 72 20 2a 73 | 31 2c 20 63 6f 6e 73 74 | char *s|1, const|
|000007c0| 20 63 68 61 72 20 2a 73 | 32 29 0a 7b 0a 20 20 20 | char *s|2).{. |
|000007d0| 20 72 65 74 75 72 6e 20 | 21 73 74 72 63 6d 70 28 | return |!strcmp(|
|000007e0| 73 31 2c 20 73 32 29 3b | 20 2f 2a 20 6f 72 20 72 |s1, s2);| /* or r|
|000007f0| 65 74 75 72 6e 20 73 74 | 72 63 6d 70 28 73 31 2c |eturn st|rcmp(s1,|
|00000800| 20 73 32 29 20 3d 3d 20 | 45 51 55 41 4c 3b 20 2a | s2) == |EQUAL; *|
|00000810| 2f 0a 7d 0a 0a 69 66 20 | 28 53 74 72 45 71 75 28 |/.}..if |(StrEqu(|
|00000820| 73 31 2c 20 73 32 29 29 | 20 2f 2a 20 2e 2e 2e 20 |s1, s2))| /* ... |
|00000830| 2a 2f 0a 0a 20 20 54 68 | 65 20 66 69 72 73 74 20 |*/.. Th|e first |
|00000840| 70 72 65 73 65 72 76 65 | 73 20 73 74 72 63 6d 70 |preserve|s strcmp|
|00000850| 27 73 20 73 65 6d 61 6e | 74 69 63 73 2c 20 74 68 |'s seman|tics, th|
|00000860| 65 20 73 65 63 6f 6e 64 | 20 75 73 65 73 20 42 6f |e second| uses Bo|
|00000870| 6f 6c 65 61 6e 20 0a 73 | 65 6d 61 6e 74 69 63 73 |olean .s|emantics|
|00000880| 20 61 6e 64 20 6f 70 74 | 69 6f 6e 61 6c 6c 79 20 | and opt|ionally |
|00000890| 68 69 64 65 73 20 74 68 | 65 20 22 21 73 74 72 63 |hides th|e "!strc|
|000008a0| 6d 70 22 20 69 64 69 6f | 6d 2e 0a 0a 0a 2d 20 4a |mp" idio|m....- J|
|000008b0| 61 6d 65 73 20 20 20 20 | 20 20 20 20 20 20 20 20 |ames | |
|000008c0| 20 20 20 20 20 20 20 20 | 22 47 6f 6f 64 20 63 61 | |"Good ca|
|000008d0| 6e 64 69 64 61 74 65 73 | 20 66 6f 72 20 65 78 63 |ndidates| for exc|
|000008e0| 65 70 74 69 6f 6e 73 20 | 61 72 65 20 73 69 74 75 |eptions |are situ|
|000008f0| 61 74 69 6f 6e 73 0a 6a | 61 6d 65 73 2d 72 6f 62 |ations.j|ames-rob|
|00000900| 69 6e 73 6f 6e 40 75 69 | 6f 77 61 2e 65 64 75 20 |inson@ui|owa.edu |
|00000910| 20 20 74 68 61 74 20 64 | 6f 20 6e 6f 74 20 6f 63 | that d|o not oc|
|00000920| 63 75 72 20 75 6e 64 65 | 72 20 6e 6f 72 6d 61 6c |cur unde|r normal|
|00000930| 20 63 69 72 63 75 6d 73 | 74 61 6e 63 65 73 2e 22 | circums|tances."|
|00000940| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000950| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000960| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000970| 20 20 20 20 20 20 20 20 | 20 2d 2d 20 4b 65 76 69 | | -- Kevi|
|00000980| 6e 20 4a 2e 20 48 6f 70 | 70 73 0a |n J. Hop|ps. |
+--------+-------------------------+-------------------------+--------+--------+